﻿<%@ Page Title="关于我们" Language="C#" MasterPageFile="~/ASP/HomeSite.Master" AutoEventWireup="true"
    CodeBehind="MyAbout.aspx.cs" Inherits="Agricultural_Sales.ASP.MyAbout" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <style>
            .hero-section {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                padding: 80px 0;
                text-align: center;
                position: relative;
                overflow: hidden;
            }

            .hero-section::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
                opacity: 0.3;
            }

            .hero-content {
                position: relative;
                z-index: 2;
            }

            .stats-card {
                background: white;
                border-radius: 15px;
                padding: 30px;
                margin: 20px 0;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
            }

            .stats-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            }

            .stats-number {
                font-size: 3rem;
                font-weight: bold;
                color: #28a745;
                margin-bottom: 10px;
            }

            .stats-label {
                color: #6c757d;
                font-size: 1.1rem;
            }

            .slogan-card {
                background: linear-gradient(45deg, #28a745, #20c997);
                color: white;
                border-radius: 15px;
                padding: 25px;
                margin: 15px 0;
                text-align: center;
                box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
                transition: all 0.3s ease;
            }

            .slogan-card:hover {
                transform: scale(1.02);
                box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
            }

            .product-showcase {
                background: #f8f9fa;
                padding: 60px 0;
            }

            .product-item {
                background: white;
                border-radius: 10px;
                padding: 20px;
                margin: 15px 0;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
                transition: transform 0.3s ease;
            }

            .product-item:hover {
                transform: translateY(-3px);
            }

            .animated-text {
                animation: fadeInUp 1s ease-out;
            }

            @keyframes fadeInUp {
                from {
                    opacity: 0;
                    transform: translateY(30px);
                }

                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .icon-large {
                font-size: 4rem;
                margin-bottom: 20px;
                color: #28a745;
            }

            .section-title {
                font-size: 2.5rem;
                font-weight: bold;
                margin-bottom: 30px;
                color: #2c3e50;
                position: relative;
            }

            .section-title::after {
                content: '';
                position: absolute;
                bottom: -10px;
                left: 50%;
                transform: translateX(-50%);
                width: 80px;
                height: 4px;
                background: linear-gradient(45deg, #28a745, #20c997);
                border-radius: 2px;
            }
        </style>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <!-- 农产品宣传标语区域 -->
        <section class="product-showcase">
            <div class="container">
                <h2 class="section-title text-center">绿色农产品理念</h2>
                <div class="row">
                    <div class="col-md-6">
                        <div class="slogan-card">
                            <h4>🌿 绿色天然，自然出色</h4>
                            <p>"怀念自然的味道，品质生活从这里开始"</p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="slogan-card">
                            <h4>🏞️ 农产承天然，品质铸非凡</h4>
                            <p>"绿色农产，健康相伴，让生活更美好"</p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="slogan-card">
                            <h4>🌾 田园情怀，有机好味</h4>
                            <p>"天然情怀，自然味道，健康美味就是这个味"</p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="slogan-card">
                            <h4>🍃 绿色生活，健康万家</h4>
                            <p>"绿色食品保健康，健康身体创佳绩"</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 热门商品展示 -->
        <section class="py-5">
            <div class="container">
                <h2 class="section-title text-center">我的购物记录</h2>
                <div class="row" id="productList">
                    <!-- 动态加载购物记录 -->
                </div>
            </div>
        </section>

        <script>
            document.addEventListener('DOMContentLoaded', function () {
                // 数字动画效果
                function animateNumber(element, target, duration = 2000) {
                    let start = 0;
                    let increment = target / (duration / 16);
                    let timer = setInterval(function () {
                        start += increment;
                        if (start >= target) {
                            element.textContent = target;
                            clearInterval(timer);
                        } else {
                            element.textContent = Math.floor(start);
                        }
                    }, 16);
                }

                // 页面滚动动画
                function isElementInViewport(el) {
                    const rect = el.getBoundingClientRect();
                    return (
                        rect.top >= 0 &&
                        rect.left >= 0 &&
                        rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
                        rect.right <= (window.innerWidth || document.documentElement.clientWidth)
                    );
                }

                function handleScrollAnimation() {
                    const elements = document.querySelectorAll('.stats-card, .slogan-card');
                    elements.forEach(function (element) {
                        if (isElementInViewport(element)) {
                            element.style.opacity = '1';
                            element.style.transform = 'translateY(0)';
                        }
                    });
                }

                window.addEventListener('scroll', handleScrollAnimation);
                handleScrollAnimation(); // 初始检查
            });
        </script>
    </asp:Content>